package elephant.servers.consoleserver;

/**
 * 
 * @author icecooly
 *
 */
public class AnsiColor {
	public static final String ANSI_RESET = "\u001B[0m";
	public static final String ANSI_BLACK = "\u001B[30m";
	public static final String ANSI_RED = "\u001B[31m";
	public static final String ANSI_GREEN = "\u001B[32m";
	public static final String ANSI_YELLOW = "\u001B[33m";
	public static final String ANSI_BLUE = "\u001B[34m";
	public static final String ANSI_PURPLE = "\u001B[35m";
	public static final String ANSI_CYAN = "\u001B[36m";
	public static final String ANSI_WHITE = "\u001B[37m";
	//
	private static String getContent(String content,String ansi){
		return ansi+content+ANSI_RESET;
	}
	//
	public static String getBlackContent(String content){
		return getContent(content, ANSI_BLACK);
	}
	//
	public static String getRedContent(String content){
		return getContent(content, ANSI_RED);
	}
	//
	public static String getGreenContent(String content){
		return getContent(content, ANSI_GREEN);
	}
	//
	public static String getYellowContent(String content){
		return getContent(content, ANSI_YELLOW);
	}
	//
	public static String getBlueContent(String content){
		return getContent(content, ANSI_BLUE);
	}
	//
	public static String getPurpleContent(String content){
		return getContent(content, ANSI_PURPLE);
	}
	//
	public static String getCyanContent(String content){
		return getContent(content, ANSI_CYAN);
	}
	//
	public static String getWhiteContent(String content){
		return getContent(content, ANSI_WHITE);
	}
}
